package createtype.Builder;

/**
 * Created by LYJ on 2016/10/18.
 * 具体建造者
 */
public class ConcreateBuilder implements ICarBuild {
    Car car;

    public ConcreateBuilder() {
        car = new Car();
    }

    @Override
    public void buildWheel() {
        car.setWheel("轮子");
    }

    @Override
    public void buildSkeleton() {
        car.setSkeleton("车身结构");
    }

    @Override
    public void buildEngine() {
        car.setEngine("发动机");
    }

    @Override
    public Car buildCar() {
        return car;
    }
}
